define(function (repire, exports, module) {
	'use strict';
    var numberUtil = {};
    
    (function (){        
        var me = numberUtil;
        me.formatAsCurrency = function(value){
            var value = numeral(value).value();
            var text = value + '';
            var formator = '0,0';
            if(text.indexOf('.')>=0){
                var resolution = text.split('.')[1];
                if(resolution){
                    formator = formator + '.';
                    for(var i = 0; i < resolution.length;i++){
                        formator = formator + '0';
                    }
                }
            }
            var text = numeral(value).format(formator);
            return text;
        };

        exports = numberUtil;
    })();

    return numberUtil;
});